package com.hpjpw.ido.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hpjpw.ido.mapper.CheerThumbMapper;
import com.hpjpw.ido.domain.CheerThumb;
import com.hpjpw.ido.service.ICheerThumbService;

/**
 * 加油站动态点赞Service业务层处理
 * 
 * @author hpj
 * @date 2021-01-02
 */
@Service
public class CheerThumbServiceImpl implements ICheerThumbService 
{
    @Autowired
    private CheerThumbMapper cheerThumbMapper;

    /**
     * 查询加油站动态点赞
     * 
     * @param id 加油站动态点赞ID
     * @return 加油站动态点赞
     */
    @Override
    public CheerThumb selectCheerThumbById(String id)
    {
        return cheerThumbMapper.selectCheerThumbById(id);
    }

    /**
     * 查询加油站动态点赞列表
     * 
     * @param cheerThumb 加油站动态点赞
     * @return 加油站动态点赞
     */
    @Override
    public List<CheerThumb> selectCheerThumbList(CheerThumb cheerThumb)
    {
        return cheerThumbMapper.selectCheerThumbList(cheerThumb);
    }

    /**
     * 新增加油站动态点赞
     * 
     * @param cheerThumb 加油站动态点赞
     * @return 结果
     */
    @Override
    public int insertCheerThumb(CheerThumb cheerThumb)
    {
        return cheerThumbMapper.insertCheerThumb(cheerThumb);
    }

    /**
     * 修改加油站动态点赞
     * 
     * @param cheerThumb 加油站动态点赞
     * @return 结果
     */
    @Override
    public int updateCheerThumb(CheerThumb cheerThumb)
    {
        return cheerThumbMapper.updateCheerThumb(cheerThumb);
    }

    /**
     * 批量删除加油站动态点赞
     * 
     * @param ids 需要删除的加油站动态点赞ID
     * @return 结果
     */
    @Override
    public int deleteCheerThumbByIds(String[] ids)
    {
        return cheerThumbMapper.deleteCheerThumbByIds(ids);
    }

    /**
     * 删除加油站动态点赞信息
     * 
     * @param id 加油站动态点赞ID
     * @return 结果
     */
    @Override
    public int deleteCheerThumbById(String id)
    {
        return cheerThumbMapper.deleteCheerThumbById(id);
    }
}
